package org.kjk.board;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

public class BoardRowMapper implements RowMapper {

	@Override
	public BoardDTO mapRow(ResultSet rs, int rowNum) throws SQLException {
		return new BoardDTO(rs.getInt(1), rs.getString(2), rs.getString(3),
				rs.getString(4), rs.getString(5));
	}

}
